com.felix.interview.module.interviewer.ViewGridPanel = function(ir){
	com.felix.nsf.Util.extend(this, com.felix.nsf.wrap.GridPanel);
	var thoj = this;

	this.getDataStore().setConfig({
		fields: ['id', 'user.name', 'state', 'startTime', 'finishTime'],
		data:interviewRoundUsers
	});
	
	this.setColumnModelConfig( [ { header :TXT.interview_interviewView_interviewer, dataIndex :'user.name',          menuDisabled :true,	width :150,  align :'left'},
                                 { header :TXT.interview_interviewView_status,     dataIndex :'state',     menuDisabled :true,	width :200,   align :'left'},
                                 { header :TXT.interview_interviewView_start_time, dataIndex :'startTime', menuDisabled :true,	width :200,   align :'left'},	 
                                 { header :TXT.interview_interviewView_finish_time,dataIndex :'finishTime',menuDisabled :true,	width :200,   align :'left'}
                                        ] );
	
	this.setGridConfig({
		title  :ir.name,
		border :true,
		margins: '0 0 0 0',
		cmargins:'0 0 4 0',
		height:150,
		loadMask:true
	});
	
	this.setPagination( false );
	this.setSelectModel( 0 );
	this.setGridEventConfig( { rowdblclick: viewExamination } );
		
	var viewExamination = function( grid, rowIndex ){
		var recordData = thoj.getSelectedRecordData(false);
		if( recordData ) {
			if( recordData.statue=='SUBMITTED' ) {
				
			} else {
				com.felix.nsf.Ajax.requestWithMessageBox("examinationAction", "get4View", function(exam){
					var win = new com.felix.exam.module.examinationView.ExaminationViewWindow(exam);
					win.show();
				}, {id: recordData.id} );
			}
		}
	};
}